package com.bobo.mapper;

import com.bobo.base.mybatis.IMapper;
import com.bobo.pojo.TransfeeFree;
import com.bobo.pojo.Transport;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TransportMapper extends IMapper<Transport> {
    /**
     * 根据运费模板id获取运费项和运费城市
     * @param id
     * @return
     */
    Transport getTransportAndTransfeeAndTranscity(@Param("id") Integer id);
    /**
     * 运费模板id获取包邮运费项和城市
     * @param transportId
     * @return
     */
    List<TransfeeFree> getTransfeeFreeAndTranscityFreeByTransportId(@Param("transportId")Integer transportId);
}
